import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path';

export default defineConfig({
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true,
      },
    },
  },
  plugins: [vue()],
  resolve: {
    alias: {
      '@comp': path.resolve(__dirname, './src/components'),
      '@': path.resolve(__dirname, './src'),
    }
  },
  server: {
    port: 3000,
    host: '0.0.0.0',
    proxy: {
      '/dzkjdap': {
        target: 'http://192.168.0.132:9003',
        changeOrigin: true,
      }
    }
  }
})
